package net.maku.events.entity;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import net.maku.framework.mybatis.entity.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 用户随手拍作品
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */

@Data
@TableName(value = "user_snapshot", autoResultMap = true)
public class UserSnapshotEntity extends BaseEntity {
    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 随手拍活动id
     */
    private Long snapshotId;

    /**
     * 活动id
     */
    private Long businessId;

    /**
     * 活动子级id
     */
    private Long businessSonId;

    /**
     * 关联id
     */
    private Long walkFeatureId;

    /**
     * 活动类型
     */
    private Integer businessType;

    /**
     * 描述
     */
    private String description;

    /**
     * 作品地址数组
     */
    @TableField(value = "file_url", typeHandler = JacksonTypeHandler.class)
    private List<String> fileUrl;

    /**
     * 发布地址
     */
    private String publishAddress;

    /**
     * 经度
     */
    private String publishLongitude;

    /**
     * 纬度
     */
    private String publishLatitude;

    /**
     * 浏览量
     */
    private Integer pageView;

    /**
     * 点赞量
     */
    private Integer likes;

    /**
     * 评论数
     */
    private Integer comments;

    /**
     * 是否精选
     */
    private Integer whetherChoiceness;

    /**
     * 审核标识  0：待审核   1：审核通过
     */
    private Integer auditStatus;

    /**
     * 租户ID
     */
    private Long tenantId;

}